home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9533 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  852 b 

  1. Path: mudskipper.cac.psu.edu!user
  2. From: fcusack@tdx.org (frank.)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Calling a function by reference?!
  5. Date: Mon, 11 Mar 1996 10:52:36 -0400
  6. Organization: Soylent Green is People!!
  7. Message-ID: <fcusack-1103961052360001@mudskipper.cac.psu.edu>
  8. References: <ga16wMlyZAQF088yn@ime.usp.br>
  9. NNTP-Posting-Host: mudskipper.cac.psu.edu
  10.  
  11. In article <ga16wMlyZAQF088yn@ime.usp.br>, rbrito@ime.usp.br wrote:
  12.  
  13. >         How  do I declare a function (say, foo) that receives two
  14. >         strings and does modifications to both?
  15. >         Is there a better way than:
  16. >         
  17. >         void foo(char **argument1, char **argument2);
  18.  
  19. void foo(char *bar, char *baz);
  20.  
  21. ~Frank
  22.  -- I am Pentium of Borg.  Division is futile.  You will be approximated. --
  23.  -- PGP ID: 1C0F6685 | NCB#56 | Visit me --> http://www.tdx.org/~fcusack/ --
  24.